home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / Demos / Tools / AppMaker / Examples / pre-built AMReminder / Procedural / Globals.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-04  |  1.4 KB  |  58 lines  |  [TEXT/MMCC]

  1. /* Globals.h */
  2. /* Created 01/01/95 12:01 PM by AppMaker */
  3.  
  4. #ifndef _H_Globals
  5. #define _H_Globals
  6.  
  7. typedef struct {
  8.     /* Standard fields: */
  9.         TEHandle        text;
  10.         ControlHandle    vScroll;
  11.         ControlHandle    hScroll;
  12.         short            fileNum;
  13.         short            volNum;
  14.         Boolean            dirty;
  15.         StringHandle    filename;
  16.         enum {noWindow, WMainWindow}    windowKind;
  17.         Handle            witlHandle;        /* Window itemlist resource */
  18.         Handle            wictHandle;        /* Window item color table resource */
  19.  
  20.     /* Application-specific fields: */
  21.     /* for MainWindow: */
  22.         ListHandle        RemindersHandle;
  23.         short            RemindersChoice;
  24.         ControlHandle    AddHandle;
  25.         ControlHandle    EditHandle;
  26.         ControlHandle    DeleteHandle;
  27.  
  28.  
  29. } WinInfoRec, *WinInfoPtr;
  30.  
  31. typedef struct {
  32.     Boolean            hasGestalt;            /* has Gestalt manager    */
  33.     Boolean            hasWNE;                /* has WaitNextEvent    */
  34.     Boolean            hasColorQD;            /* has Color QuickDraw    */
  35.     Boolean            hasAppleEvents;        /* has Apple Events        */
  36.     Boolean            hasEditionMgr;        /* has Edition Manager    */
  37. } SysConfigRec;
  38.  
  39. /* Standard vars: */
  40. extern Boolean            quittingTime;
  41. extern EventRecord        curEvent;
  42. extern WindowPtr        curWindow;
  43. extern WinInfoPtr        cur;
  44. extern Boolean            inBackground;
  45. extern SysConfigRec        sysConfig;
  46.  
  47. /* Application-specific vars: */
  48.  
  49. /*----------*/
  50. void    InitGlobals        (void);
  51. void    SetInfo            (WindowPtr        window);
  52. void    SetNewInfo        (WindowPtr        window);
  53. void    DiscardInfo        (WindowPtr        window);
  54.  
  55. #endif    /* _H_Globals */
  56.  
  57. /* Globals */
  58.